home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-06-21 | 1.1 KB | 32 lines | [TEXT/MPS ] |
- The 'ColorHack' color text hack for MPW 3.2 and Symantec C
-
- Written by Ray Sanders and by Steve Antonakes at MacHack 1991.
-
-
- This hack implements the ability to have your C reserved keywords show up
- in color on a MacII. The requirements are that your machine has Color Quickdraw
- and 4 or 8 bit color is turned on.
-
- To install this hack, paste the following three resources into a copy
- of the shell application for your development environment
- (MPW 3.x or Think C 4.x):
- WDEF 0
- GRAF 0
- sCOL 128
- then start your program and open a C language program file. The ANSI
- reserved words should now be in color.
- If you want to add (or remove) words, go into the ColorHack resource
- file with ResEdit and open the sCOL/128 resource. Each entry has a
- string name and a three part R/G/B color specification. The only colors
- that will work are: red, green, blue, cyan, yellow, magenta, white, and black.
-
-
- If you need to recompile any of the source code, use MPW with the following commands:
-
-
- asm xxWDEF.a
- link xxWDEF.a.o -o xxWDEF.rsrc -t '????' -rt WDEF=0
- asm xxGRAF.a
- c xxCSEARCH.c -b
- link xxGRAF.a.o xxCSEARCH.c.o -o xxGRAF.rsrc -t '????' -rt GRAF=0
-